<page-header [title]="'保险管理'">
  <ng-template #breadcrumb>
    <nz-breadcrumb>
      <nz-breadcrumb-item>基本信息</nz-breadcrumb-item>
      <!--<nz-breadcrumb-item><a [routerLink]="['/prod/product']">产品资料</a></nz-breadcrumb-item>-->
    </nz-breadcrumb>
  </ng-template>
  <ng-template #tab>
    <nz-tabset [nzSize]="'default'" [nzTabBarExtraContent]="extraTemplate">
      <nz-tab nzTitle="基本信息" (nzSelect)="changeTab(0)"></nz-tab>
      <!--<nz-tab nzTitle="库存/价格" (nzSelect)="changeTab(1)"></nz-tab>-->
      <!--<nz-tab nzTitle="其他" (nzSelect)="changeTab(2)"></nz-tab>-->
    </nz-tabset>
  </ng-template>
  <ng-template #extraTemplate>
    <button nz-button (click)="back()"><i class="anticon anticon-rollback"></i>返回保险列表</button>
  </ng-template>
</page-header>

<nz-card [nzBordered]="false" *ngIf="tabIndex === 0">
  <form nz-form>
    <nz-form-item>
      <nz-form-label nzSpan="2" nzRequired>状态</nz-form-label>
      <nz-form-control nzSpan="4">
        <nz-select style="" [(ngModel)]="product.bpmStatus" name="bpmStatus" nzAllowClear nzShowSearch [nzPlaceHolder]="'请选择'">
          <nz-option [nzLabel]="bpmStatu.text" [nzValue]="bpmStatu.value" *ngFor="let bpmStatu of bpmStatus"></nz-option>
        </nz-select>
      </nz-form-control>

      <nz-form-label nzSpan="2" nzRequired>保险公司</nz-form-label>
      <nz-form-control nzSpan="4">
        <nz-select style="" [(ngModel)]="product.insName" name="insName" nzAllowClear nzShowSearch [nzPlaceHolder]="'请选择'">
          <nz-option [nzLabel]="insName.text" [nzValue]="insName.value" *ngFor="let insName of insNos"></nz-option>
        </nz-select>
      </nz-form-control>

    </nz-form-item>
    <nz-form-item>


      <nz-form-label nzSpan="2" nzRequired>客户姓名</nz-form-label>
      <nz-form-control nzSpan="4">
        <input nz-input [(ngModel)]="product.cusName" name="cusName">

      </nz-form-control>

      <nz-form-label nzSpan="2" nzRequired>联系电话</nz-form-label>
      <nz-form-control nzSpan="4">
        <input nz-input [(ngModel)]="product.cusMobile" name="cusMobile">

      </nz-form-control>

      <nz-form-label nzSpan="2">发送日期</nz-form-label>
      <nz-form-control nzSpan="4">
        <nz-date-picker nzFormat="yyyy-MM-dd" name="sendDate" [(ngModel)]="product.sendDate"></nz-date-picker>


      </nz-form-control>


      <nz-form-label nzSpan="2" nzRequired>发送内容</nz-form-label>
      <nz-form-control nzSpan="4">
        <input nz-input [(ngModel)]="product.sendContent" name="sendContent">
      </nz-form-control>


      <!--<nz-form-label nzSpan="2" nzRequired>发送附件</nz-form-label>-->
      <!--<nz-form-control nzSpan="4">-->
        <!--<input nz-input [(ngModel)]="product.sendUrl" name="sendUrl">-->

      <!--</nz-form-control>-->

      <nz-form-label nzSpan="2">回复日期</nz-form-label>
      <nz-form-control nzSpan="4">
        <nz-date-picker nzFormat="yyyy-MM-dd" name="recDate" [(ngModel)]="product.recDate"></nz-date-picker>


      </nz-form-control>

      <nz-form-label nzSpan="2" nzRequired>回复内容</nz-form-label>
      <nz-form-control nzSpan="4">
        <input nz-input [(ngModel)]="product.recContent" name="recContent">
      </nz-form-control>


      <!--<nz-form-label nzSpan="2" nzRequired>回复附件</nz-form-label>-->
      <!--<nz-form-control nzSpan="4">-->
        <!--<input nz-input [(ngModel)]="product.recUrl" name="recUrl">-->

      <!--</nz-form-control>-->









    </nz-form-item>
  </form>

</nz-card>

<nz-card [nzBordered]="false" *ngIf="tabIndex === 1">

</nz-card>

<nz-card [nzBordered]="false" *ngIf="tabIndex === 2">

</nz-card>

<footer-toolbar errorCollect>
  <button nz-button type="primary" nzType="primary" (click)="save()">保存</button>
</footer-toolbar>
